#ifndef TETRISBOX_H
#define TETRISBOX_H
#include <cstdlib>
#include <ctime>
#include <QWidget>
#include <QPaintEvent>
#include <QPainter>
#include <QPalette>
#include <QPen>
#include <QBrush>
#include <QColor>
#include <QDesktopWidget>
#include <QApplication>
#include<QPixmap>
//为了使用Block
#include "tetris.h"
class Tetrisbox : public QWidget
{
    Q_OBJECT
public:
    explicit Tetrisbox(QWidget *parent = 0);
    ~Tetrisbox();
    void updateTetris(Tetris tetris);       //更新数据和视图
    void paintEvent(QPaintEvent *event);    //绘制视图

signals:
private:
    Block block;            //用来储存Tetris中block的数据
    int box[MAXX][MAXY];    //用来存储Tetris中box的数据

public slots:
};

#endif // TETRISBOX_H
